package cn.samler.account_manager.annotation;

import cn.samler.account_manager.validator.InAccountFailedMapCheck;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = InAccountFailedMapCheck.class)
public @interface InAccountFailedMap {
    String message() default "不支持的字段";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
